/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.groupb.circus.Databases;

import java.util.ArrayList;
import java.util.Iterator;

/**
 *
 * @author bhavna
 */
public class Images {
    
    private String id;
    private String title;
    private String day;
    private String month;
    private String year;
    private String path;
    private String author;
    private String description;
    private ArrayList<String> keywords;
    private String continent;
    private String country;
    private String place;
    private String geotagX;
    private String geotagY;
    private String size;
    private String resolution;
    private String dimensionsX;
    private String dimensionsY;
    private String format;
    
    public Images(){
        id="";
        title="";
        day="";
        month="";
        year="";
        path="";
        author="";
        description="";
        keywords=new ArrayList<String>();
        continent="";
        country="";
        place="";
        geotagX="";
        geotagY="";
        size="";
        resolution="";
        dimensionsX="";
        dimensionsY="";
        format="";
    }
    
    public void setId (String i){
        id = i;
    }
    
    public String getId () {
        return id;
    }
    
    public void setTitle (String t){
        title =t;
    }
    
    public String getTitle () {
        return title;
    }
    
    public void setDay (String d){
        day =d;
    }
    
    public String getDay () {
        return day;
    }
    
    public void setMonth (String m){
        month =m;
    }
    
    public String getMonth () {
        return month;
    }
    
    public void setYear (String y){
        year =y;
    }
    
    public String getYear () {
        return year;
    }
    
    
    
    public void setAuthor (String a){
         author =a;
    }
    
    public String getAuthor () {
         return author;
    }
    
    public void setDescription (String des){
         description = des;
    }
    
    public String getDescription () {
         return description;
    }
	
    
    public void addKeyword (String k){
          keywords.add(k);
    }
    
    public String getPath () {
         return path;
    }
	
    
    public void setPath (String path){
          this.path=path;
    }
    
     public void setContinent(String continent){
        this.continent=continent;
    }
    
    public String getContinent(){
        return continent;
    }
    
      public void setCountry(String country){
        this.country=country;
    }
    
    public String getCountry(){
        return country;
    }
    
      public void setPlace(String place){
        this.place=place;
    }
    
    public String getPlace(){
        return place;
    }
    
      public void setGeotagX(String geotagx){
        this.geotagX=geotagx;
    }
    
    public String getGeotagX(){
        return geotagX;
    }
    
    public void setGeotagY(String geotagy){
        this.geotagY=geotagy;
    }
    
    public String getGeotagY(){
        return geotagY;
    }
    
    public void setSize(String si){
        this.size=si;
    }
    
    public String getSize(){
        return size;
    }
    
    public void setResolution(String res){
        this.resolution=res;
    }
    
    public String getResolution(){
        return resolution;
    }
    
    public void setDimensionsX(String dimx){
        this.dimensionsX=dimx;
    }
    
    public String getDimensionsX(){
        return dimensionsX;
    }
    
    public void setDimensionsY(String dimy){
        this.dimensionsY=dimy;
    }
    
    public String getDimensionsY(){
        return dimensionsY;
    }
    
    public void setFormat(String format){
        this.format=format;
    }
    
    public String getFormat(){
        return format;
    }
    
    
    @Override
    public String toString() {
        
		
		String res = "ID: "+ id +"\n"+"TITLE: " + title + "\n"+ "DAY: "+ day +"\n"+"MONTH: "+month+"\n"+"YEAR: "+year+"\n"+"PATH: "+path+"\n"+"AUTHOR: "+author+"\n"+"DESCRIPTION: "+description+"\n";
                for(Iterator iterator = keywords.iterator(); iterator.hasNext();) {
		    res = res + "\t KEYWORD: " + (String)iterator.next() + "\n";
		}
                
                res = res + "CONTINENT: "+continent+"\n"+"COUNTRY: "+country+"\n"+"PLACE: "+place+"\n"+"GEOTAG X: "+geotagX+"\n"+"GEOTAG Y :"+geotagY+"\n"
                      +"SIZE: "+size+"\n"+"RESOLUTION: "+resolution+"\n"+"DIMENSIONS X: "+dimensionsX+"\n"+"DIMENSIONS y: "+dimensionsY+"\n"+"FORMAT: "+format+"\n";
                return res;
	}
    
}
